home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d26 / stages12.arc / MENUS2.C < prev    next >
Text File  |  1991-05-22  |  18KB  |  587 lines

  1. #include "header.h"
  2. #include "file.h"
  3.  
  4. #if PC
  5. #define TAB1    4    /* pos of 1st col of menu items on pc screen */
  6. #define TAB2    35    /* pos of 2nd col of menu items on pc screen */
  7. #endif
  8.  
  9. /*************************************************************************/
  10. /**    menu functions                                   **/
  11. /*************************************************************************/
  12. /* all menus return int value:
  13.     0 = successful input, continue program
  14.  
  15.    menus listed herein:
  16.         cyclemenu
  17.         displaymenu
  18.         cellmenu
  19.         daysmenu
  20. */
  21. /********************************/
  22. /*     function: cyclemenu     */
  23. /********************************/
  24. /* prints out the Cyclen menu, deals with user input to the menu */
  25. cyclemenu ()
  26. {
  27.   char input[MAXLEN];    /* user menu choice */
  28.   char c;
  29.   int valid;        /* boolean */
  30.   int val, j;
  31. #if PC
  32.   int i;
  33. #endif
  34.  
  35.   if (strcmp(Animal, "None")==0) {
  36. #if PC
  37.     topline(" Cycle Length Menu ");
  38.     clrscr1(1);
  39.     gotoxy(1, 5);
  40.     cprintf("%sNo animal has been selected yet.", tab);
  41.     gotoxy(1, 6);
  42.     cprintf("%sPlease use the Animal Menu to select an animal.", tab);
  43.     hitreturn(1);
  44.     if (HARDCOPY) {
  45.       togglepr();
  46.       fprintf(stdprn, "\n\tNo animal has been selected yet.\n");
  47.       fprintf(stdprn, "\tPlease use the Animal Menu to select an animal.\n");
  48.     }
  49. #else
  50.     printf("\n\tNo animal has been selected yet.\n");
  51.     printf("\tPlease use the Animal Menu to select an animal.\n");
  52. #endif
  53.     if (FILEq && FILECOPY) {
  54.       fprintf(fpout, "\n\tNo animal has been selected yet.\n");
  55.       fprintf(fpout, "\tPlease use the Animal Menu to select an animal.\n");
  56.     }
  57.     return(103);        /* goto animal menu */
  58.   }
  59.  
  60.   valid = 0;
  61.   while (! valid) {
  62. #if PC
  63.     topline(" Cycle Length Menu ");
  64.     clrscr1(1);
  65.     normvideo();
  66.     i = 2;
  67.     gotoxy(TAB2, i++);
  68.     cprintf("H:  Change Cycle Length");
  69.     gotoxy(TAB2, i++);
  70.     cprintf("I:  Use Default Cycle Length");
  71.     i = 2;
  72.     gotoxy(TAB1, i++);
  73.     cprintf("A:  Go to General Menu");
  74.     gotoxy(TAB1, i++);
  75.     cprintf("B:  Go to Help Menu");
  76.     gotoxy(TAB1, i++);
  77.     cprintf("C:  Go to Animal Menu");
  78.     gotoxy(TAB1, i++);
  79.     cprintf("D:  (...");
  80.     highvideo();
  81.     cprintf("Cycle Menu");
  82.     normvideo();
  83.     cprintf("...)");
  84.     gotoxy(TAB1, i++);
  85.     cprintf("E:  Go to Display Menu");
  86.     gotoxy(TAB1, i++);
  87.     cprintf("F:  Go to Cell Input Menu");
  88.     gotoxy(TAB1, i++);
  89.     cprintf("G:  Go to Days Input Menu");
  90.     i++;
  91.     gotoxy(TAB1, i);
  92.     cprintf("X:  Exit Program");
  93.     gotoxy(TAB2, i);
  94.     cprintf("?:  Show Help Screen");
  95.     if (HARDCOPY) {
  96.       togglepr();
  97.       fprintf(stdprn, "\n\n\t\t    Cycle Length Menu\n\n");
  98.       fprintf(stdprn, "\tA:  Go to General Menu\n");
  99.       fprintf(stdprn, "\tB:  Go to Help Menu\n");
  100.       fprintf(stdprn, "\tC:  Go to Animal Menu\n");
  101.       fprintf(stdprn, "\tD:  (...Cycle Length Menu...)\n");
  102.       fprintf(stdprn, "\tE:  Go to Display Menu\n");
  103.       fprintf(stdprn, "\tF:  Go to Cell Input Menu\n");
  104.       fprintf(stdprn, "\tG:  Go to Days Input Menu\n\n");
  105.       fprintf(stdprn, "\tH:  Change Cycle Length\n");
  106.       fprintf(stdprn, "\tI:  Use Default Cycle Length\n\n");
  107.       fprintf(stdprn, "\tX:  Exit Program\n");
  108.       fprintf(stdprn, "\t?:  Show Help Screen\n");
  109.     }
  110. #else
  111.     printf("\n\n\t\t    Cycle Length Menu\n\n");
  112.     printf("\tA:  Go to General Menu\n");
  113.     printf("\tB:  Go to Help Menu\n");
  114.     printf("\tC:  Go to Animal Menu\n");
  115.     printf("\tD:  (...Cycle Length Menu...)\n");
  116.     printf("\tE:  Go to Display Menu\n");
  117.     printf("\tF:  Go to Cell Input Menu\n");
  118.     printf("\tG:  Go to Days Input Menu\n\n");
  119.     printf("\tH:  Change Cycle Length\n");
  120.     printf("\tI:  Use Default Cycle Length\n\n");
  121.     printf("\tX:  Exit Program\n");
  122.     printf("\t?:  Show Help Screen\n");
  123. #endif
  124.     if (FILEq && FILECOPY) {
  125.       fprintf(fpout, "\n\n\t\t    Cycle Length Menu\n\n");
  126.       fprintf(fpout, "\tA:  Go to General Menu\n");
  127.       fprintf(fpout, "\tB:  Go to Help Menu\n");
  128.       fprintf(fpout, "\tC:  Go to Animal Menu\n");
  129.       fprintf(fpout, "\tD:  (...Cycle Length Menu...)\n");
  130.       fprintf(fpout, "\tE:  Go to Display Menu\n");
  131.       fprintf(fpout, "\tF:  Go to Cell Input Menu\n");
  132.       fprintf(fpout, "\tG:  Go to Days Input Menu\n\n");
  133.       fprintf(fpout, "\tH:  Change Cycle Length\n");
  134.       fprintf(fpout, "\tI:  Use Default Cycle Length\n\n");
  135.       fprintf(fpout, "\tX:  Exit Program\n");
  136.       fprintf(fpout, "\t?:  Show Help Screen\n");
  137.     }
  138.  
  139. #if PC
  140.     clrscr1(2);
  141.     cprintf("%sPlease enter your menu choice:", tab);
  142.     gotoxy(1, 2);
  143.     highvideo();
  144.     cprintf("%s%c%c%c ", tab2, HBAR, HBAR, RTRI);
  145.     normvideo();
  146.     val = getusrstr(input);
  147.     if (HARDCOPY) {
  148.       togglepr();
  149.       fprintf(stdprn, "\n\tPlease enter your menu choice:\n");
  150.       fprintf(stdprn, "\t\t==> %s", input);
  151.     }
  152. #else
  153.     printf("\n\tPlease enter your menu choice:\n");
  154.     printf("\t\t==> ");
  155.     getusrstr(input);
  156. #endif
  157.     if (FILEq && FILECOPY) {
  158.       fprintf(fpout, "\n\tPlease enter your menu choice:\n");
  159.       fprintf(fpout, "\t\t==> %s", input);
  160.     }
  161.  
  162. #if PC
  163.     if (val) return(val);
  164.     else {
  165. #endif
  166.       c = input[0];
  167.       switch (toupper1(c)) {
  168.       case 'A':        /* goto intro menu */
  169.     return(101);
  170.       case 'B':        /* goto help menu */
  171.     return(102);
  172.       case 'C':        /* goto animal menu */
  173.     return(103);
  174.       case 'D':        /* stay here at cycle length menu */
  175.     break;
  176.       case 'E':        /* goto display meny */
  177.     return(114);
  178.       case 'F':        /* goto cell input menu */
  179.     return(105);
  180.       case 'G':        /* goto days input menu */
  181.     return(106);
  182.       case 'H':        /* change cycle length */
  183.     valid = 1;
  184.     val = getCyclelen();
  185.     break;
  186.       case 'I':        /* use default cycle length */
  187.     valid = 1;
  188.     /* transform old stage[j] vals (days) to new ones */
  189.     for ( j=0; j<NumStages; j++ )
  190.       stage[j] = stage[j] * DefaultCycleTime / CycleTime;
  191.     /* reset CycleTime to default value */
  192.     CycleTime = DefaultCycleTime;
  193. #if PC
  194.     printCycleTime();
  195. #endif
  196.     NewCycleTime = 0;
  197.     val = 0;
  198.     break;
  199.       case '?':        /* show help screen */
  200.     helpcyclelenip();
  201.     break;
  202.       case 'X':        /* Done */
  203.     printexit(32);
  204.       default:
  205. #if PC
  206.     clrscr1(3);
  207.     printf("%s%sInvalid choice:  <%c>.", tab, ERRSTR, input[0]);
  208.     if (HARDCOPY) {
  209.       togglepr();
  210.       fprintf(stdprn, "\t%sInvalid choice:  <%c>.", ERRSTR, input[0]);
  211.     }
  212. #else
  213.     printf("\t%sInvalid choice:  <%c>.", ERRSTR, input[0]);
  214. #endif
  215.     if (FILEq && FILECOPY)
  216.       fprintf(fpout, "\t%sInvalid choice:  <%c>.\n", ERRSTR, input[0]);
  217.       } /* switch */
  218. #if PC
  219.     } /* if ! val */
  220. #endif
  221.   } /* while */
  222. } /* cyclemenu */
  223.  
  224. /********************************/
  225. /*     function: displaymenu    */
  226. /********************************/
  227. /* prints out the display menu, deals with user input
  228.    prints out stage data and cell sequence data */
  229. displaymenu ()
  230. {
  231.   char input[MAXLEN];    /* user menu choice */
  232.   char c;
  233. #if PC
  234.   int val;        /* return val of getusrstr */
  235.   int i;
  236. #endif
  237.  
  238.   while (TRUE) {
  239.     /* endless loop; only way out is via returns in the loop */
  240. #if PC
  241.     topline(" Display Menu ");
  242.     clrscr1(1);
  243.     normvideo();
  244.     i = 2;
  245.     gotoxy(TAB2, i++);
  246.     cprintf("H:  Show Stage Length Data");
  247.     gotoxy(TAB2, i++);
  248.     cprintf("I:  Show Cell Sequence Data");
  249.     i = 2;
  250.     gotoxy(TAB1, i++);
  251.     cprintf("A:  Go to General Menu");
  252.     gotoxy(TAB1, i++);
  253.     cprintf("B:  Go to Help Menu");
  254.     gotoxy(TAB1, i++);
  255.     cprintf("C:  Go to Animal Menu");
  256.     gotoxy(TAB1, i++);
  257.     cprintf("D:  Go to Cycle Length Menu");
  258.     gotoxy(TAB1, i++);
  259.     cprintf("E:  (...");
  260.     highvideo();
  261.     cprintf("Display Menu");
  262.     normvideo();
  263.     cprintf("...)");
  264.     gotoxy(TAB1, i++);
  265.     cprintf("F:  Go to Cell Input Menu");
  266.     gotoxy(TAB1, i++);
  267.     cprintf("G:  Go to Days Input Menu");
  268.     i++;
  269.     gotoxy(TAB1, i);
  270.     cprintf("X:  Exit Program");
  271.     gotoxy(TAB2, i);
  272.     cprintf("?:  Show Help Screen");
  273.     if (HARDCOPY) {
  274.       togglepr();
  275.       fprintf(stdprn, "\n\n\t\t    Display Menu\n\n");
  276.       fprintf(stdprn, "\tA:  Go to General Menu\n");
  277.       fprintf(stdprn, "\tB:  Go to Help Menu\n");
  278.       fprintf(stdprn, "\tC:  Go to Animal Menu\n");
  279.       fprintf(stdprn, "\tD:  Go to Cycle Length Menu\n");
  280.       fprintf(stdprn, "\tE:  (...Display Menu...)\n");
  281.       fprintf(stdprn, "\tF:  Go to Cell Input Menu\n");
  282.       fprintf(stdprn, "\tG:  Go to Days Input Menu\n\n");
  283.       fprintf(stdprn, "\tH:  Stage Length Data\n");
  284.       fprintf(stdprn, "\tI:  Cell Sequence Data\n\n");
  285.       fprintf(stdprn, "\tX:  Exit Program\n");
  286.       fprintf(stdprn, "\t?:  Show Help Screen\n");
  287.     }
  288. #else
  289.     printf("\n\n\t\t    Display Menu\n\n");
  290.     printf("\tA:  Go to General Menu\n");
  291.     printf("\tB:  Go to Help Menu\n");
  292.     printf("\tC:  Go to Animal Menu\n");
  293.     printf("\tD:  Go to Cycle Length Menu\n");
  294.     printf("\tE:  (...Display Menu...)\n");
  295.     printf("\tF:  Go to Cell Input Menu\n");
  296.     printf("\tG:  Go to Days Input Menu\n\n");
  297.     printf("\tH:  Stage Length Data\n");
  298.     printf("\tI:  Cell Sequence Data\n\n");
  299.     printf("\tX:  Exit Program\n");
  300.     printf("\t?:  Show Help Screen\n");
  301. #endif
  302.     if (FILEq && FILECOPY) {
  303.       fprintf(fpout, "\n\n\t\t    Display Menu\n\n");
  304.       fprintf(fpout, "\tA:  Go to General Menu\n");
  305.       fprintf(fpout, "\tB:  Go to Help Menu\n");
  306.       fprintf(fpout, "\tC:  Go to Animal Menu\n");
  307.       fprintf(fpout, "\tD:  Go to Cycle Length Menu\n");
  308.       fprintf(fpout, "\tE:  (...Display Menu...)\n");
  309.       fprintf(fpout, "\tF:  Go to Cell Input Menu\n");
  310.       fprintf(fpout, "\tG:  Go to Days Input Menu\n\n");
  311.       fprintf(fpout, "\tH:  Stage Length Data\n");
  312.       fprintf(fpout, "\tI:  Cell Sequence Data\n\n");
  313.       fprintf(fpout, "\tX:  Exit Program\n");
  314.       fprintf(fpout, "\t?:  Show Help Screen\n");
  315.     }
  316.  
  317. #if PC
  318.     clrscr1(2);
  319.     cprintf("%sPlease enter your menu choice:", tab);
  320.     gotoxy(1, 2);
  321.     highvideo();
  322.     cprintf("%s%c%c%c ", tab2, HBAR, HBAR, RTRI);
  323.     normvideo();
  324.     val = getusrstr(input);
  325.     if (HARDCOPY) {
  326.       fprintf(stdprn, "\n\tPlease enter your menu choice:\n");
  327.       fprintf(stdprn, "\t\t==> %s", input);
  328.     }
  329.     if (val) return(val);
  330. #else
  331.     printf("\n\tPlease enter your menu choice:\n");
  332.     printf("\t\t==> ");
  333.     getusrstr(input);
  334. #endif
  335.     if (FILEq && FILECOPY) {
  336.       fprintf(fpout, "\n\tPlease enter your menu choice:\n");
  337.       fprintf(fpout, "\t\t==> %s", input);
  338.     }
  339.  
  340.     c = input[0];
  341.     switch (toupper1(c)) {
  342.     case 'A':        /* goto intro menu */
  343.       return(101);
  344.     case 'B':        /* goto help menu */
  345.       return(102);
  346.     case 'C':        /* goto animalmenu */
  347.       return(103);
  348.     case 'D':        /* goto cycle length menu */
  349.       return(104);
  350.     case 'E':        /* stay here at display menu */
  351.       break;
  352.     case 'F':        /* go to cell input menu */
  353.       return(105);
  354.     case 'G':        /* go to days input menu */
  355.       return(106);
  356.     case 'H':
  357.       if (! printstgdat())
  358.     /* tried to print w/o animal: goto animalmenu */
  359.     return(103);
  360. #if PC
  361.       else {
  362.     hitreturn(1);
  363.     if (HARDCOPY)
  364.       printstgdatHARD();
  365.       }
  366. #endif
  367.     break;
  368.     case 'I':
  369.       if (! printseqdat())
  370.     /* tried to print w/o animal: goto animalmenu */
  371.     return(103);
  372. #if PC
  373.       else {
  374.     hitreturn(1);
  375.     if (HARDCOPY)
  376.       printseqdatHARD();
  377.       }
  378. #endif
  379.       break;
  380.     case '?':        /* show help screen */
  381.       helpdisplaymenu();
  382.       break;
  383.     case 'X':        /* Done */
  384.       printexit(33);
  385.       break;
  386.     default:
  387. #if PC
  388.       clrscr1(3);
  389.       printf("%s%sInvalid choice:  <%c>.", tab, ERRSTR, input[0]);
  390.       if (HARDCOPY) {
  391.     togglepr();
  392.     fprintf(stdprn, "\t%sInvalid choice:  <%c>.", ERRSTR, input[0]);
  393.       }
  394. #else
  395.       printf("\t%sInvalid choice:  <%c>.", ERRSTR, input[0]);
  396. #endif
  397.       if (FILEq && FILECOPY)
  398.     fprintf(fpout, "\t%sInvalid choice:  <%c>.\n", ERRSTR, input[0]);
  399.     } /* switch */
  400.   } /* while */
  401. } /* displaymenu */
  402.  
  403. /********************************/
  404. /*     function: cellmenu    */
  405. /********************************/
  406. /* prints out the cell menu.  doesn't deal with user input,
  407.    this is done in inputs2.c: getusrcells */
  408. cellmenu ()
  409. {
  410. #if PC
  411.   int i;
  412. #endif
  413.  
  414. #if PC
  415.   topline(" Cell Input Menu ");
  416.   clrscr1(1);
  417.   normvideo();
  418.   i = 2;
  419.   gotoxy(TAB2, i++);
  420.   cprintf("H:  Show Stage Length Data");
  421.   gotoxy(TAB2, i++);
  422.   cprintf("I:  Show Cell Sequence Data");
  423.   i = 2;
  424.   gotoxy(TAB1, i++);
  425.   cprintf("A:  Go to General Menu");
  426.   gotoxy(TAB1, i++);
  427.   cprintf("B:  Go to Help Menu");
  428.   gotoxy(TAB1, i++);
  429.   cprintf("C:  Go to Animal Menu");
  430.   gotoxy(TAB1, i++);
  431.   cprintf("D:  Go to Cycle Length Menu");
  432.   gotoxy(TAB1, i++);
  433.   cprintf("E:  Go to Display Menu");
  434.   gotoxy(TAB1, i++);
  435.   cprintf("F:  (...");
  436.   highvideo();
  437.   cprintf("Cell Input Menu");
  438.   normvideo();
  439.   cprintf("...)");
  440.   gotoxy(TAB1, i++);
  441.   cprintf("G:  Go to Days Input Menu");
  442.   i++;
  443.   gotoxy(TAB1, i);
  444.   cprintf("X:  Exit Program");
  445.   gotoxy(TAB2, i);
  446.   cprintf("?:  Show Help Screen");
  447.   if (HARDCOPY) {
  448.     togglepr();
  449.     fprintf(stdprn, "\n\n\t\t    Cell Input Menu\n\n");
  450.     fprintf(stdprn, "\tA:  Go to General Menu\n");
  451.     fprintf(stdprn, "\tB:  Go to Help Menu\n");
  452.     fprintf(stdprn, "\tC:  Go to Animal Menu\n");
  453.     fprintf(stdprn, "\tD:  Go to Cycle Length Menu\n");
  454.     fprintf(stdprn, "\tE:  Go to Display Menu\n");
  455.     fprintf(stdprn, "\tF:  (...Cell Input Menu...)\n");
  456.     fprintf(stdprn, "\tG:  Go to Days Input Menu\n\n");
  457.     fprintf(stdprn, "\tH:  Show Stage Length Data\n");
  458.     fprintf(stdprn, "\tI:  Show Cell Sequence Data\n\n");
  459.     fprintf(stdprn, "\tX:  Exit Program\n");
  460.     fprintf(stdprn, "\t?:  Show Help Screen\n");
  461.   }
  462. #else
  463.   printf("\n\n\t\t    Cell Input Menu\n\n");
  464.   printf("\tA:  Go to General Menu\n");
  465.   printf("\tB:  Go to Help Menu\n");
  466.   printf("\tC:  Go to Animal Menu\n");
  467.   printf("\tD:  Go to Cycle Length Menu\n");
  468.   printf("\tE:  Go to Display Menu\n");
  469.   printf("\tF:  (...Cell Input Menu...)\n");
  470.   printf("\tG:  Go to Days Input Menu\n\n");
  471.   printf("\tH:  Show Stage Length Data\n");
  472.   printf("\tI:  Show Cell Sequence Data\n\n");
  473.   printf("\tX:  Exit Program\n");
  474.   printf("\t?:  Show Help Screen\n");
  475. #endif
  476.   if (FILEq && FILECOPY) {
  477.     fprintf(fpout, "\n\n\t\t    Cell Input Menu\n\n");
  478.     fprintf(fpout, "\tA:  Go to General Menu\n");
  479.     fprintf(fpout, "\tB:  Go to Help Menu\n");
  480.     fprintf(fpout, "\tC:  Go to Animal Menu\n");
  481.     fprintf(fpout, "\tD:  Go to Cycle Length Menu\n");
  482.     fprintf(fpout, "\tE:  Go to Display Menu\n");
  483.     fprintf(fpout, "\tF:  (...Cell Input Menu...)\n");
  484.     fprintf(fpout, "\tG:  Go to Days Input Menu\n\n");
  485.     fprintf(fpout, "\tH:  Show Stage Length Data\n");
  486.     fprintf(fpout, "\tI:  Show Cell Sequence Data\n\n");
  487.     fprintf(fpout, "\tX:  Exit Program\n");
  488.     fprintf(fpout, "\t?:  Show Help Screen\n");
  489.   }
  490.   return(0);
  491. } /* cellmenu */
  492.  
  493. /********************************/
  494. /*     function: daysmenu    */
  495. /********************************/
  496. /* prints out the days menu.  doesn't deal with user input,
  497.    this is done in inputs.c:getusrcells */
  498. daysmenu ()
  499. {
  500. #if PC
  501.   int i;
  502. #endif
  503.  
  504. #if PC
  505.   topline(" Days Input Menu ");
  506.   clrscr1(1);
  507.   normvideo();
  508.   i = 2;
  509.   gotoxy(TAB2, i++);
  510.   cprintf("H:  Show Stage Length Data");
  511.   gotoxy(TAB2, i++);
  512.   cprintf("I:  Show Cell Sequence Data");
  513.   gotoxy(TAB2, i++);
  514.   cprintf("J:  Show Input Cells");
  515.   i = 2;
  516.   gotoxy(TAB1, i++);
  517.   cprintf("A:  Go to General Menu");
  518.   gotoxy(TAB1, i++);
  519.   cprintf("B:  Go to Help Menu");
  520.   gotoxy(TAB1, i++);
  521.   cprintf("C:  Go to Animal Menu");
  522.   gotoxy(TAB1, i++);
  523.   cprintf("D:  Go to Cycle Length Menu");
  524.   gotoxy(TAB1, i++);
  525.   cprintf("E:  Go to Display Menu");
  526.   gotoxy(TAB1, i++);
  527.   cprintf("F:  Go to Cell Input Menu");
  528.   gotoxy(TAB1, i++);
  529.   cprintf("G:  (...");
  530.   highvideo();
  531.   cprintf("Days Input Menu");
  532.   normvideo();
  533.   cprintf("...)");
  534.   i++;
  535.   gotoxy(TAB1, i);
  536.   cprintf("X:  Exit Program", tab);
  537.   gotoxy(TAB2, i);
  538.   cprintf("?:  Show Help Screen", tab);
  539.   if (HARDCOPY) {
  540.     togglepr();
  541.     fprintf(stdprn, "\n\n\t\t    Days Input Menu\n\n");
  542.     fprintf(stdprn, "\tA:  Go to General Menu\n");
  543.     fprintf(stdprn, "\tB:  Go to Help Menu\n");
  544.     fprintf(stdprn, "\tC:  Go to Animal Menu\n");
  545.     fprintf(stdprn, "\tD:  Go to Cycle Length Menu\n");
  546.     fprintf(stdprn, "\tE:  Go to Display Menu\n");
  547.     fprintf(stdprn, "\tF:  Go to Cell Input Menu\n");
  548.     fprintf(stdprn, "\tG:  (...Days Input Menu...)\n\n");
  549.     fprintf(stdprn, "\tH:  Show Stage Length Data\n");
  550.     fprintf(stdprn, "\tI:  Show Cell Sequence Data\n");
  551.     fprintf(stdprn, "\tJ:  Show Input Cells\n\n");
  552.     fprintf(stdprn, "\tX:  Exit Program\n");
  553.     fprintf(stdprn, "\t?:  Show Help Screen\n");
  554.   }
  555. #else
  556.   printf("\n\n\t\t    Days Input Menu\n\n");
  557.   printf("\tA:  Go to General Menu\n");
  558.   printf("\tB:  Go to Help Menu\n");
  559.   printf("\tC:  Go to Animal Menu\n");
  560.   printf("\tD:  Go to Cycle Length Menu\n");
  561.   printf("\tE:  Go to Display Menu\n");
  562.   printf("\tF:  Go to Cell Input Menu\n");
  563.   printf("\tG:  (...Days Input Menu...)\n\n");
  564.   printf("\tH:  Show Stage Length Data\n");
  565.   printf("\tI:  Show Cell Sequence Data\n");
  566.   printf("\tJ:  Show Input Cells\n\n");
  567.   printf("\tX:  Exit Program\n");
  568.   printf("\t?:  Show Help Screen\n");
  569. #endif
  570.   if (FILEq && FILECOPY) {
  571.     fprintf(fpout, "\n\n\t\t    Days Input Menu\n\n");
  572.     fprintf(fpout, "\tA:  Go to General Menu\n");
  573.     fprintf(fpout, "\tB:  Go to Help Menu\n");
  574.     fprintf(fpout, "\tC:  Go to Animal Menu\n");
  575.     fprintf(fpout, "\tD:  Go to Cycle Length Menu\n");
  576.     fprintf(fpout, "\tE:  Go to Display Menu\n");
  577.     fprintf(fpout, "\tF:  Go to Cell Input Menu\n");
  578.     fprintf(fpout, "\tG:  (...Days Input Menu...)\n\n");
  579.     fprintf(fpout, "\tH:  Show Stage Length Data\n");
  580.     fprintf(fpout, "\tI:  Show Cell Sequence Data\n");
  581.     fprintf(fpout, "\tJ:  Show Input Cells\n\n");
  582.     fprintf(fpout, "\tX:  Exit Program\n");
  583.     fprintf(fpout, "\t?:  Show Help Screen\n");
  584.   }
  585.   return(0);
  586. } /* daysmenu */
  587.